import { createApp } from 'vue'
import './style.css'
import 'amfe-flexible'
import App from './App.vue'
import Vant from 'vant'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import { createPinia } from "pinia"
import router from './router/index'
import 'vant/lib/index.css'
import NavTop from "./components/navTop/index.vue"
// 引入瀑布流组件
import { List , Search } from 'vant';
import shopBar from "./components/shopBar/index.vue"
import BackTopTo from "./components/BackTopTo/index.vue"

import "./permission"








const app = createApp(App)
app.component("NavTop",NavTop)
app.component("shopBar",shopBar)
app.component("BackTopTo",BackTopTo)
app.use(Vant)
app.use(Search)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(createPinia())
app.use(router)
app.use(List)
app.mount('#app')




